const { resolve } = require('path');
const pkg = require('./package.json');
module.exports = {
  root: resolve(__dirname, './public'),
  port: 8080,
  alias: {
    '/src/': resolve(__dirname, 'src'),
  },
  proxy: {
    '/airline': {
      target: 'http://localhost:3000',
      changeOrigin: true,
    },
  },
  base: process.env.GH_PAGE ? `/${pkg.name}/` : '/',
};
